package com.kee.server.dao;

import java.io.IOException;

import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;

public class BaseDao {
	protected static SqlMapClient sqlMapClientMaster;
	
	protected static SqlMapClient sqlMapClientImport;
	
	static{
		try {
			sqlMapClientMaster = SqlMapClientBuilder.buildSqlMapClient(
					Resources.getResourceAsReader ("sql-map-master.xml"));
			sqlMapClientImport = SqlMapClientBuilder.buildSqlMapClient(
					Resources.getResourceAsReader ("sqlMapConfigImport.xml"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args) {
		System.out.println(sqlMapClientImport);
	}
}
